#include "vectorfunctions.h"
#include <iostream>

int main()
{
	int mat[10][10];
	int x[100];
	int i, j, n=0, row, col, sum=0, prod=1;
	cout<<"Number of rows ";
	cin>>row;
	cout<<"Number of colons ";
	cin>>col;
	for (i=0; i<row; i++)
		for (j=0; j<col; j++){
			cout<<"m["<<i<<"]["<<j<<"]= ";
			cin>>mat[i][j];	
		}
	for (i=0; i<row; ++i)
		for (j=0; j<col; ++j){
			if(i<j)
				sum += mat[i][j];
			if(i>j)
				prod *= mat[i][j];
		}
	cout<<"Sum : " << sum<<"\nProduct :"<<prod<<endl;
	
return 0;
}

/*
1 2 3
4 5 6
7 8 9
*/
